import { Application } from 'egg';

export default (app: Application) => {
  const { controller, router } = app;

  router.post('/', controller.httpFile.index);

  router.post('/chunks_upload', controller.httpFile.chunksUpload);

  router.post('/chunks_merge', controller.httpFile.chunksMerge);

  router.post('/hash_check', controller.httpFile.hashCheck);

};
